package com.dcd.service.impl;

import com.dcd.mapper.Car_model_ImagesMapper;
import com.dcd.pojo.Car_model;
import com.dcd.pojo.Car_model_images;
import com.dcd.pojo.Car_model_images_type;
import com.dcd.pojo.Specific_color;
import com.dcd.service.Car_model_ImagesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class Car_model_ImagesServiceImpl implements Car_model_ImagesService {

    @Autowired(required = false)
    private Car_model_ImagesMapper cim;

    /**
     * 查询所有大图类型名称
     * @return
     */
    @Override
    public List<Car_model_images_type> select_car_model_imgType() {
        return cim.select_car_model_imgType();
    }

    /**
     * 根据条件查询相关实拍大图相关车系
     * @param car_model_images_type_id  //外观，内饰等id
     * @param brand_id     //品牌id
     * @param car_series_id   //车系id
     * @param car_model_id   //车型id
     * @param specific_color_id   //颜色id
     * @return
     */
    @Override
    public List<Car_model> select_car_model_imgById( int brand_id, int car_series_id, int car_model_id,int car_model_images_type_id, int specific_color_id) {
        return cim.select_car_model_imgById(brand_id,car_series_id,car_model_id,car_model_images_type_id,specific_color_id);
    }

    /**
     * 查询所有颜色
     * @return
     */
    @Override
    public List<Car_model_images> select_specific_color(int car_model_images_type_id,int car_model_id) {
        return cim.select_specific_color(car_model_images_type_id,car_model_id);
    }


}
